using UnityEngine;
using System.Collections;

public class Job{
	
	public double percentageComplete = 0;
	public bool isBuildingOperationJob, isConstructionJob, isDeconstructionJob, 
			isEquipJob, isHaulingJob, isMiningJob;
	public int x, y, z;
	public int jobType;
	
	public Job(int startX, int startY, int startZ, int njobType){
		x = startX;
		y = startY;
		z = startZ;
		percentageComplete = 0;
		
		/*-
		isBuildingOperationJob = false;
		isConstructionJob = false;
		isDeconstructionJob = false;
		isEquipJob = false;
		isHaulingJob = false;
		isMiningJob = false;
		-*/
		
		jobType = njobType;
		if ((jobType > 6) | (jobType < 0)){
			jobType = 0;
		}
		
		Controller.addJob(this);
		
	}
	
	public bool workOn(double workspeed, Robot robot){
		
		if (percentageComplete > 100){
			return true;
		} else {
			return false;
		}
	}
	
	
	
}
